Skip to content

Restrict user data access#10

Merged
hussein-m-kandil merged 2 commits intomainfrom
dev
Jul 15, 2025
Merged

Restrict user data access#10
hussein-m-kandil merged 2 commits intomainfrom
dev

Conversation

@hussein-m-kandil
Copy link
Copy Markdown
Owner

This pull request tightens access control on user-related routes to protect sensitive data and enforce proper authorization rules.

What’s New

  • 🔒 Restricted GET /users/:username to allow access only to:

    • The user themselves
    • Admin users
  • 🔐 Limited GET /users to admin users only

These changes ensure that user data cannot be accessed arbitrarily and follow the principle of least privilege.

@hussein-m-kandil hussein-m-kandil merged commit fee2859 into main Jul 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant